Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 1db3133f0d9bc67e6b943c6040e4e06535ad78f0


Parents : 5228d56
Author : Mark Qvist <mark@unsigned.io>
Date : 2023-11-08T00:16:45+01:00

Fixed markup not being activated in command messages

Changes

1 files changed, 2 insertions(+), 1 deletions(-)


Diff

diff --git a/sbapp/ui/messages.py b/sbapp/ui/messages.py
index e2403015..1cbfd564 100644
--- a/sbapp/ui/messages.py
+++ b/sbapp/ui/messages.py
@@ -181,6 +181,7 @@ class Messages():
extra_content = ""
extra_telemetry = {}
telemeter = None
+ force_markup = False
signature_valid = False
if "lxm" in m and m["lxm"] != None and m["lxm"].signature_validated:
@@ -203,6 +204,7 @@ class Messages():
if Commands.SIGNAL_REPORT in command:
extra_content = "[font=RobotoMono-Regular]> sig[/font]\n"
extra_content = extra_content[:-1]
+ force_markup = True
except Exception as e:
RNS.log("Error while generating command display: "+str(e), RNS.LOG_ERROR)
@@ -293,7 +295,6 @@ class Messages():
heading_str += rcvd_d_str
pre_content = ""
- force_markup = False
if not signature_valid:
identity_known = False
if RNS.Identity.recall(m["hash"]) != None:


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────